package com.bkhc.product.service;

import com.bkhc.common.util.response.ResultJson;
import com.bkhc.product.entity.Goods;
import com.bkhc.product.entity.GoodsSpec;
import com.bkhc.product.repository.GoodspecRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class GoodsSpecService {

    @Autowired
    private GoodspecRepository repository;

    public List<GoodsSpec> getGoods(List goodsCode){
        List<GoodsSpec> byGoodsCode = repository.findByGoodsCodeIn(goodsCode);
        return byGoodsCode;
    }
}
